package com.wsoft.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 数据字典明细表
 * </p>
 *
 * @author kyle
 * @since 2024年08月29日 14:38:25
 */
@Getter
@Setter
@TableName("ts_dict_data")
@Schema(name = "TsDictDataEntity", description = "数据字典明细表")
public class TsDictDataEntity extends BaseEntity {

    @Schema(description = "字典id")
    @TableField("dict_id")
    private Long dictId;

    @Schema(description = "父id(树形时)")
    @TableField("pid")
    private Long pid;

    @Schema(description = "字典编码(字典code_自定义code)")
    @TableField("code")
    private String code;

    @Schema(description = "名称")
    @TableField("name")
    private String name;

    @Schema(description = "是否启用")
    @TableField("is_enable")
    private Integer isEnable;

    @Schema(description = "图标")
    @TableField("icon")
    private String icon;
}
